package com.ecoolex.ying.space.ws;

import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.framework.common.pojo.Sorting;
import com.ecoolex.ying.space.entity.MarktingCatalog;
import com.ecoolex.ying.space.pojo.QueryMarktingCatalogDTO;

public interface MarktingCatalogService {

    MarktingCatalog addCatalog(MarktingCatalog record, String createUser) throws BizException;

    MarktingCatalog updateCatalog(MarktingCatalog record, String updateUser) throws BizException;

    void deleteCatalog(MarktingCatalog record, String updateUser) throws BizException;
    
    void online(MarktingCatalog record, String updateUser) throws BizException;
    
    void offline(MarktingCatalog record, String updateUser) throws BizException;

    MarktingCatalog getCatalogById(Integer catalogId);

    Pagination<MarktingCatalog> queryMarktingCatalog(QueryMarktingCatalogDTO query, Sorting[] sorts, Page page);
    
    Pagination<MarktingCatalog> queryMarktingCatalogForH5(Page page);

}
